diagnostic endoscopic procedure